package com.bsi.app.util;

import android.annotation.SuppressLint;
import android.os.StrictMode;

/**
 * 系统设置的工具类
 * <p>
 * 
 * @author zhangfan
 * @version 2013-8-28
 */
@SuppressLint("NewApi")
public class SystemSettingUtil {
	public static void webserviceNetworkSettingAboveApiLvl11() {
		StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
				.detectDiskReads().detectDiskWrites().detectNetwork() // or
																		// .detectAll()
																		// for
																		// all
																		// detectable
																		// problems
				.penaltyLog().build());
		StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
				.detectLeakedSqlLiteObjects().detectLeakedClosableObjects()
				.penaltyLog().penaltyDeath().build());
	}
}
